package com.yike.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.yike.common.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.yike.common.api.Update;

/**
 * 退款单表
 *
 * @author yike
 * @since 2024-08-01
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("qy_refund")
@ApiModel(value = "Refund对象")
public class Refund extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("店铺ID")
    private Long shopId;

    @NotBlank(message = "订单ID不能为空")
    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("订单状态: 0.待退款 1.已退款 2.退款失败")
    private Integer status;

    @ApiModelProperty("退款金额")
    private BigDecimal amount;

    @ApiModelProperty("退款单号")
    private String refundNo;

    @ApiModelProperty("微信退款单号")
    private String wxRefundId;

    @ApiModelProperty("退款原因")
    private String refundDesc;

    @ApiModelProperty("失败原因")
    private String errorDesc;

}
